/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author le nopo
 */
public class FisherVarians implements Varians {
    
    public FisherVarians (Fisher fish){
        System.out.println("Varians dari distribusi F adalah " +getVarians(fish));
    }
    
    public double getVarians(Fisher fish) {        
        return (2 * Math.pow(fish.getV2(), 2) * (fish.getV1() + fish.getV2() - 2) / (fish.getV1() * Math.pow((fish.getV2() - 2), 2) * (fish.getV2() - 4)));
    }

}
